-- GENERATED SPELL FOR [Gava'xi] --


function spell0_18298(pUnit, Event) --@Eviscerate,n/a--
pUnit:FullCastSpellOnTarget(15691,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18298', 660, 1)
end

function spell1_18298(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(12540,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18298', 4284, 1)
end

function spell2_18298(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(14873,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18298', 565, 1)
end

function Sorts_18298(pUnit, Event)
local choix_sorts_18298 = math.random(0, 2)
if choix_sorts_18298 == 0 then
pUnit:RegisterEvent('spell0_18298', 1, 1)
end
if choix_sorts_18298 == 1 then
pUnit:RegisterEvent('spell1_18298', 1, 1)
end
if choix_sorts_18298 == 2 then
pUnit:RegisterEvent('spell2_18298', 1, 1)
end
end

function mob18298_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18298', math.random(1500, 3000), 1)
end

function mob18298_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18298_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18298_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18298, 1, 'mob18298_Action')
RegisterUnitEvent(18298, 2, 'mob18298_Leave')
RegisterUnitEvent(18298, 3, 'mob18298_Kill')
RegisterUnitEvent(18298, 4, 'mob18298_Die')
